package com.wk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("cmfz_user")
@Data
public class CmfzUser implements Serializable {

    @TableId(value="user_id", type= IdType.AUTO)
    private Integer userId;


    @TableField("user_telphone")
    private String userTelphone;

    @TableField("user_password")
    private String userPassword;

    @TableField("user_image")
    private String userImage;

    @TableField("user_nickname")
    private String userNickname;

    @TableField("user_name")
    private String userName;

    @TableField("user_sex")
    private String userSex;

    @TableField("user_autograph")
    private String userAutograph;

    @TableField("user_province")
    private String userProvince;

    @TableField("user_city")
    private String userCity;

    @TableField("user_status")
    private Integer userStatus;


    @JsonFormat(pattern = "yyyy-MM-dd:HH:mm:ss")
    @TableField("user_create_date")
    private Date userCreateDate;

    @TableField(exist = false)
    private CmfzGuru guru;

    private Integer guruId;


}
